require 'rake/clean'

CLEAN.include('*.res')

task :default => [:gen_res]

SRC = FileList['*.c']
DST = SRC.ext('res')
LAB2 = "/home/nate/compiler/public_html/labs/lab2/lab2"

rule '.res' => '.c' do |t|
  sh "#{LAB2} #{t.source} > #{t.name}"
end

task :gen_res => DST do
end
